package com.ruoyi.wlxz.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.time.LocalDateTime;
/**
 * 文档对象 filerecord
 *
 * @author zlh
 * @date 2025-03-22
 */
public class Filerecord {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    private Long id;
    /**
     * 文档id
     */
    @Excel(name = "文档id")
    private String fileId;
    /**
     * 文档名称
     */
    @Excel(name = "文档名称")
    private String fileName;
    /**
     * 文档大小
     */
    @Excel(name = "文档大小")
    private Long fileSize;
    /**
     * 文档格式
     */
    @Excel(name = "文档格式")
    private String fileFormat;
    /**
     * 类目id
     */
    @Excel(name = "类目id")
    private String categoryId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
    private String createBy;
    public String getCreateBy() {
        return createBy;
    }
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getId() {
        return id;
    }
    public void setFileId(String fileId) {
        this.fileId = fileId;
    }
    public String getFileId() {
        return fileId;
    }
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    public String getFileName() {
        return fileName;
    }
    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }
    public Long getFileSize() {
        return fileSize;
    }
    public void setFileFormat(String fileFormat) {
        this.fileFormat = fileFormat;
    }
    public String getFileFormat() {
        return fileFormat;
    }
    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }
    public String getCategoryId() {
        return categoryId;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("fileId", getFileId())
                .append("fileName", getFileName())
                .append("fileSize", getFileSize())
                .append("fileFormat", getFileFormat())
                .append("categoryId", getCategoryId())
                .toString();
    }
}
